<?php
/**
 * Created by PhpStorm.
 * User: gabriel
 * Date: 2018/11/26
 * Time: 4:25 PM
 * 检查运行环境
 */
namespace CLI;

use Common\Logger;
use DB\Home\AccountUser;
use DB\Home\AccountUserInfo;

class SetStatus extends CLI {
  protected function run(){
    $user = new AccountUser();
    $info = new AccountUserInfo();
    $info->name = "张志强";
    $info->email = "2420601646@qq.com";
    $info->nickname = "nick";
    $info->phone = 13648097177;
    if ($user->insert($info)){
      Logger::getInstance()->info("用户信息插入成功");
    }
  }
}
